---
layout: m1x_soap
title: Account Info
---

<h3><a name="giftcard_account.info-Module%3AGiftCardAPI"></a>Module: GiftCard API</h3>

<h4><a name="giftcard_account.info-Resource%3Agiftcardaccount"></a>Resource: giftcard_account</h4>


<h5><a name="giftcard_account.info-Method%3A"></a>Method:</h5>

<ul>
	<li>giftcard_account.info (SOAP V1)</li>
	<li>giftcardAccountInfo (SOAP V2)</li>
</ul>


<p>Allows you to receive full information about the selected gift card account.</p>

<p><b>Arguments:</b></p>

<table><tbody>
<tr>
<th> Type </th>
<th> Name </th>
<th> Description </th>
</tr>
<tr>
<td> string </td>
<td> sessionId </td>
<td> Session ID </td>
</tr>
<tr>
<td> string </td>
<td> giftcardAccountId </td>
<td> Gift card account ID </td>
</tr>
</tbody></table>


<p><b>Return:</b></p>

<table><tbody>
<tr>
<th> Type </th>
<th> Name </th>
<th> Description </th>
</tr>
<tr>
<td> array </td>
<td> result </td>
<td> Array of giftcardAccountEntity </td>
</tr>
</tbody></table>


<p>The <b>giftcardAccountEntity</b> content is as follows:</p>

<table><tbody>
<tr>
<th> Type </th>
<th> Name </th>
<th> Description </th>
</tr>
<tr>
<td> int </td>
<td> giftcard_id </td>
<td> Gift card account ID </td>
</tr>
<tr>
<td> string </td>
<td> code <br class="atl-forced-newline" /> </td>
<td> Gift card account code </td>
</tr>
<tr>
<td> int </td>
<td> store_id <br class="atl-forced-newline" /> </td>
<td> Gift card account store ID </td>
</tr>
<tr>
<td> string </td>
<td> date_created <br class="atl-forced-newline" /> </td>
<td> Creation date in the&nbsp;YYYY-MM-DD format </td>
</tr>
<tr>
<td> string </td>
<td> expire_date <br class="atl-forced-newline" /> </td>
<td> Expiration date in the&nbsp;YYYY-MM-DD format </td>
</tr>
<tr>
<td> int </td>
<td> is_active <br class="atl-forced-newline" /> </td>
<td> Defines whether the gift card account is active </td>
</tr>
<tr>
<td> int </td>
<td> is_redeemable <br class="atl-forced-newline" /> </td>
<td> Defines whether the gift card account is redeemable </td>
</tr>
<tr>
<td> string </td>
<td> status <br class="atl-forced-newline" /> </td>
<td> Gift card account status </td>
</tr>
<tr>
<td> double </td>
<td> balance <br class="atl-forced-newline" /> </td>
<td> Gift card account initial balance </td>
</tr>
<tr>
<td> array </td>
<td> history <br class="atl-forced-newline" /> </td>
<td> Array of&nbsp;giftcardAccountEntityHistory </td>
</tr>
</tbody></table>

<p>The&nbsp;<b>giftcardAccountEntityHistory</b> content is as follows:</p>

<table><tbody>
<tr>
<th> Type </th>
<th> Name </th>
<th> Description </th>
</tr>
<tr>
<td> int </td>
<td> record_id <br class="atl-forced-newline" /> </td>
<td> Record ID </td>
</tr>
<tr>
<td> string </td>
<td> date <br class="atl-forced-newline" /> </td>
<td> Date </td>
</tr>
<tr>
<td> string </td>
<td> action <br class="atl-forced-newline" /> </td>
<td> History action <br class="atl-forced-newline" /> </td>
</tr>
<tr>
<td> double </td>
<td> balance_delta <br class="atl-forced-newline" /> </td>
<td> Balance delta </td>
</tr>
<tr>
<td> double </td>
<td> balance <br class="atl-forced-newline" /> </td>
<td> Balance </td>
</tr>
<tr>
<td> string </td>
<td> info <br class="atl-forced-newline" /> </td>
<td> Record comment <br class="atl-forced-newline" /> </td>
</tr>
</tbody></table>

<p><b>Faults:</b></p>


<table><tbody>
<tr>
<th> Fault Code </th>
<th> Fault Message </th>
</tr>
<tr>
<td> 100 </td>
<td> Gift card does not exists. </td>
</tr>
</tbody></table>


<h4><a name="giftcard_account.info-Examples"></a>Examples</h4>

<h5><a name="giftcard_account.info-RequestExampleSOAPV1"></a>Request Example SOAP V1</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div id="root">
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/soap/?wsdl');
$sessionId = $proxy-&gt;login('apiUser', 'apiKey');

$giftcardId = 1;
$giftcardInfo = $proxy-&gt;call(
    $sessionId,
    "giftcard_account.info",
    array(
         $giftcardId
    )
);</pre>
		</div>
</div></div>

<h5><a name="giftcard_account.info-RequestExampleSOAPV2"></a>Request Example SOAP V2</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div id="root">
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl'); // TODO : change url
$sessionId = $proxy-&gt;login('apiUser', 'apiKey'); // TODO : change login and pwd if necessary

$result = $proxy-&gt;giftcardAccountInfo($sessionId, '1');
var_dump($result);</pre>
		</div>
</div></div>



<h5><a name="giftcard_account.info-RequestExampleSOAPV2%28WSIComplianceMode%29"></a>Request Example SOAP V2 (WS-I Compliance Mode)</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div id="root">
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl'); 

$sessionId = $proxy-&gt;login((object)array('username' =&gt; 'apiUser', 'apiKey' =&gt; 'apiKey')); 
 
$result = $proxy-&gt;giftcardAccountInfo((object)array('sessionId' =&gt; $sessionId-&gt;result, 'giftcardAccountId' =&gt; '1'));   

var_dump($result-&gt;result);</pre>
		</div>
</div></div>


<h5><a name="giftcard_account.info-ResponseExampleSOAPV1"></a>Response Example SOAP V1</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div id="root">
		<pre class="theme: Default; brush: php; gutter: false">array
  'giftcard_id' =&gt; string '1' (length=1)
  'code' =&gt; string '02DQ9T1K0Y0V' (length=12)
  'store_id' =&gt; string '0' (length=1)
  'date_created' =&gt; string '2012-04-06' (length=10)
  'expire_date' =&gt; null
  'is_active' =&gt; string '0' (length=1)
  'status' =&gt; string 'Available' (length=9)
  'balance' =&gt; string '0.0000' (length=6)
  'is_redeemable' =&gt; string '1' (length=1)
  'history' =&gt;
    array
      0 =&gt;
        array
          'record_id' =&gt; string '1' (length=1)
          'date' =&gt; string '2012-04-06 14:31:57' (length=19)
          'action' =&gt; string 'Created' (length=7)
          'balance_delta' =&gt; string '0.0000' (length=6)
          'balance' =&gt; string '0.0000' (length=6)
          'info' =&gt; null</pre>
		</div>
</div></div>

<?php include(__ROOT__ . 'footer.php'); ?>
